﻿@inherits System.Web.Mvc.WebViewPage<IEnumerable<Pikapika.Models.Publisher>>

@{
    ViewBag.Title = "Publisher - List";
    
}

    <table>
        <tr>
            <th></th>
            <th>
                Id
            </th>
            <th>
                Name
            </th>
        </tr>

    @foreach (var item in Model) {
    
        <tr>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
                @Html.ActionLink("Details", "Details", new { id=item.Id }) |
                @Html.ActionLink("Delete", "Delete", new { id=item.Id }) |
                @Html.ActionLink("Novels", "Index", "Novel", new { publisherId=item.Id }, null)
            </td>
            <td>
                @item.Id
            </td>
            <td>
                @item.Name
            </td>
        </tr>
    
    }

    </table>

    <p>
        @Html.ActionLink("Create New", "Create")
    </p>


